﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace VRacer
{
    public struct Position
    {
        private int _x;
        private int _y;

        public Position(int x, int y)
        {
            _x = x;
            _y = y;
        }

        public int X
        {
            get { return _x; }
            set { _x = value; }
        }

        public int Y
        {
            get { return _y; }
            set { _y = value; }
        }

        public static implicit operator Point(Position point)
        {
            return new Point(point.X, point.Y);
        }

        public static implicit operator Position(Point point)
        {
            return new Position((int)point.X, (int)point.Y);
        }
    }
}
